﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace LuKou.Web.ViewModel
{
    public class UserEditInfo
    {
        public long ID { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [DisplayName("用户名：")]
        public string Name { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [DisplayName("电子邮箱：")]
        public string Email { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [DisplayName("用户类型：")]
        public int UserType { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [DisplayName("用户性别：")]
        public int UserSex { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [DisplayName("验证码：")]
        public string ValidateCode { get; set; }

    }
    public class UserPwdInfo
    {
        public long ID { get; set; }
        [Required(ErrorMessage = "不能为空")]
        [DisplayName("旧密码：")]
        public string OldPassWord { get; set; }
        [Required(ErrorMessage = "不能为空")]
        [DisplayName("新密码：")]
        public string PassWord { get; set; }
        [Required(ErrorMessage = "不能为空")]
        [DisplayName("确认新密码：")]
        public string RePassWord { get; set; }
    }
}
